
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';

@Injectable()
export class JmtgTcl8ComponentViewmodel extends ViewModel {
    public bindingPath = '/';
    // farrisDataGrid列集合定义 在对应component中赋值
    public jmtg_tcl8_dataGridColumns:any;
    // datGrid 列集合名称 用以bindData使用
    public dataGridColumnsName:string;

    public dom = {
  "jmtg-tcl8-dataGrid": {
    "type": "DataGrid",
    "resourceId": "jmtg-tcl8-dataGrid",
    "visible": {
      "useQuote": false,
      "isExpression": false,
      "value": true
    },
    "id": "jmtg-tcl8-dataGrid",
    "readonly": {
      "useQuote": false,
      "isExpression": false,
      "value": false
    },
    "fields": [
      {
        "type": "GridField",
        "resourceId": "merchantCode_3ca385f8_rzi8",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "merchantCode_3ca385f8_rzi8",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "merchantCode",
          "fullPath": "MerchantCode",
          "isExpression": false,
          "value": "merchantCode"
        },
        "dataField": "merchantCode",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "参与商户编号",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "merchantCode_3ca385f8_zf02",
          "defaultI18nValue": "参与商户编号",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "merchantCode_3ca385f8_zf02",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "merchantCode",
            "fullPath": "MerchantCode",
            "isExpression": false,
            "value": "merchantCode"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "merchantName_718e88bb_e3c8",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "merchantName_718e88bb_e3c8",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "merchantName",
          "fullPath": "MerchantName",
          "isExpression": false,
          "value": "merchantName"
        },
        "dataField": "merchantName",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "参与商户名称",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "merchantName_718e88bb_jkl4",
          "defaultI18nValue": "参与商户名称",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "merchantName_718e88bb_jkl4",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "merchantName",
            "fullPath": "MerchantName",
            "isExpression": false,
            "value": "merchantName"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "adminstrator_f3478ce9_56hl",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "adminstrator_f3478ce9_56hl",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "adminstrator",
          "fullPath": "Adminstrator",
          "isExpression": false,
          "value": "adminstrator"
        },
        "dataField": "adminstrator",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "商户管理员",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "adminstrator_f3478ce9_eh7u",
          "defaultI18nValue": "商户管理员",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "adminstrator_f3478ce9_eh7u",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "adminstrator",
            "fullPath": "Adminstrator",
            "isExpression": false,
            "value": "adminstrator"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      }
    ],
    "multiSelect": false,
    "showLineNumber": false,
    "lineNumberTitle": "#",
    "groupTotalText": "Total",
    "filterable": false,
    "groupable": false,
    "rowClass": ""
  }
};
    @NgCommand({
        name: 'jmtgtcl8componentviewmodelFilter1',
        params: {
            commandName: 'undefined',
            frameId: 'undefined'
        },
        paramDescriptions: {
            commandName: { type: 'string' },
            frameId: { type: 'string' }
        }
    })
    public jmtgtcl8componentviewmodelFilter1(commandParam?: any): Observable<any> { return; }

}